'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/hello', controller.home.index);
  router.post('/api/hello', controller.home.post);
  router.get('/api/verify', controller.home.verify);
  // router.get('/api/user', controller.user.getUser);
  router.post('/api/user/register', controller.user.register);
  router.post('/api/user/login', controller.user.login);
  // router.delete('/api/user/:id', controller.user.deleteUser);
};
